package cn.study.service.impl;

import cn.study.entity.StudyTestQuestionsOne;
import cn.study.mapper.StudyEmployeeQueenMapper;
import cn.study.mapper.StudyTestQuestionsOneMapper;
import cn.study.service.StudyTestQuestionsOneService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 单选试题表 服务实现类
 * </p>
 *
 * @author qiao
 * @since 2020-06-22
 */
@Service
public class StudyTestQuestionsOneServiceImpl extends ServiceImpl<StudyTestQuestionsOneMapper, StudyTestQuestionsOne> implements StudyTestQuestionsOneService {
    @Autowired
    StudyTestQuestionsOneMapper studyTestQuestionsOneMapper;
    @Override
    public List<StudyTestQuestionsOne> oneLikeList(String oneval) {
        QueryWrapper<StudyTestQuestionsOne> wrapper = new QueryWrapper<>();
        wrapper.like("test_questions_one_opic",oneval);
        wrapper.orderByDesc("create_time");
        return studyTestQuestionsOneMapper.selectList(wrapper);
    }
}
